﻿using System;
using System.Runtime.CompilerServices;
using UnityEngine;

public class TriggerEventListener : MonoBehaviour
{
    [CompilerGenerated]
    private static TriggerEventHandler <>f__am$cache2;
    [CompilerGenerated]
    private static TriggerEventHandler <>f__am$cache3;
    public TriggerEventHandler onTriggerEnter;
    public TriggerEventHandler onTriggerExit;

    public TriggerEventListener()
    {
        if (<>f__am$cache2 == null)
        {
            <>f__am$cache2 = new TriggerEventHandler(TriggerEventListener.<onTriggerEnter>m__156);
        }
        this.onTriggerEnter = <>f__am$cache2;
        if (<>f__am$cache3 == null)
        {
            <>f__am$cache3 = new TriggerEventHandler(TriggerEventListener.<onTriggerExit>m__157);
        }
        this.onTriggerExit = <>f__am$cache3;
    }

    [CompilerGenerated]
    private static void <onTriggerEnter>m__156(Collider x)
    {
    }

    [CompilerGenerated]
    private static void <onTriggerExit>m__157(Collider x)
    {
    }

    protected virtual void OnTriggerEnter(Collider other)
    {
        if (this.onTriggerEnter != null)
        {
            this.onTriggerEnter(other);
        }
    }

    protected virtual void OnTriggerExit(Collider other)
    {
        if (this.onTriggerExit != null)
        {
            this.onTriggerExit(other);
        }
    }
}

